﻿///<FileHeader>
///     <FileName>DisplayMode.cs</FileName>
///     <Author>Kiran Chand Palakkattiri</Author>
///     <Project>
///         <Name>Property Visibility Extensions for DSL</Name>
///         <Url>http://kiranchand.codeplex.com</Url>
///     </Project>
///     <CreationDate>August 02, 2009.</CreationDate>
///     <Contents>
///         <Content type="enum" name="DisplayMode"
///         comments="Describes the mode of displaying property in the property grid
///         in the property behavior configuration." />
///     </Contents>
///     <Dependencies/>
///     <Modifications/>
///     <Version>1.0.0.0</Version>
///</FileHeader>

namespace Kiranchand.Dsl.Extensions.PropertyVisibility
{
    /// <summary>
    /// Describes the mode of displaying property in the property grid in the property behavior configuration.
    /// </summary>
    public enum DisplayMode
    {
        /// <summary>
        /// The default behavior configured for the domain property as in DSL.
        /// </summary>
        Default = 0,
        /// <summary>
        /// Property will be shown in property grid as editable and user can change the value
        /// even if configured to be UI read only and/or non browseable in DSL.
        /// </summary>
        Editable = 1,
        /// <summary>
        /// Property will be shown as read only even if configured to be non browseable in DSL.
        /// </summary>
        ReadOnly = 2,
        /// <summary>
        /// The property will not be shown to the user in the property grid.        
        /// </summary>
        Hidden = 3
    }
}
